package HomeWork.work13;

/**
 * @author banana
 */
public class Work13 {
    private String name;
    private int courseid;
    public void setName(String name1){
        name=name1;
    }
    public String getName(){
        return name;
    }
    public void setStuid(int id){
        if(id<=0){
            System.out.println("学号错误");
        }else if(id>=37){
            System.out.println("没这么多人");
        }else {
            courseid=id;
        }
    }
    public int getcourseid(){
        return courseid;
    }

    public void older(int courseid1, int courseid2){
        if(courseid1<courseid2){
            System.out.println(name+"上完上体育");
        }else {
            System.out.println(name+"等体育上完再上");
        }
    }
}
